package generic;

/**
 * Created by Administrator on 2017/7/3.
 */

/**
 * use generic
 * @param <T> -->any type
 */
public class GenericMemoryCell<T> {
    private T storedValue;

    public T read(){
        return storedValue;
    }

    public void write(T x){
        storedValue = x;
    }
}
